const TODOS_KEY = 'todos_key'
export default {
  saveTodos(value) {
    window.localStorage.setItem('todos_key', JSON.stringify(value))
  },
  readTodos () {
    return JSON.parse(window.localStorage.getItem('todos_key') || '[]')
  }
}
